package com.autologistics.service;

import java.util.List;

import com.autologistics.model.Goods;
import com.autologistics.util.PageBean;

public interface GoodsService {
	public List<Goods> listAll(int userId); 
	public List<Goods> searchGoods(int userId,String name);
	public void addGood(Goods newGood);
	public Goods getGoodById(int id);
	public void updateGood(Goods good);
	public void deleteGood(int goodId);

//	public int allRow(int userId);
	public PageBean queryForOnePage(final int pageSize, int page,int userId);
	public List<Goods> getGoodsByUserAndKind(int userId,int kind);
}
